[2.0.x] Add TMC2130 sensorless probing#9582
[2.0.x] Add TMC2130 sensorless probing#9582thinkyhead merged 2 commits intoMarlinFirmware:bugfix-2.0.xfrom
Conversation
|
I still think this should be Delta only. |
422fe87 to
8916532
Compare
|
That's why I put the following caution in the description of the |
|
I think I'd rather see |
|
With the addition of these sensitive features, maybe it would be good to have a separate sketch that does testing on the stepper drivers to figure out the proper value limits and ranges —especially for stall sensitivity— so users can be pretty confident about them before plugging them into Marlin and leaping straight to Or… have a |
|
For this, I just used Also, I believe having a separate sketch isn't currently possible with the LPC1768 HAL. A calibration procedure would be nice, but isn't always necessary. As I've dialed in the parameters like Z offset and stall sensitivity, I've updated my configuration files, which ensures that the system is safe to operate when updating to newer versions of Marlin. |
|
Holding this until after the 1.1.9 release, which could be pretty soon. Still a few bugs to look into. |
|
I'm not aware of any bugs. Just concerns that this might not be as usable
on some machines as others.
|
|
I'm referring to bugs generally that I need to look into before releasing 1.1.9. Not bugs in this PR. |
8b99060 to
a01473d
Compare
2308508 to
1e946d6
Compare
8960719 to
9fd1016
Compare
9f46c52 to
889fd5f
Compare
@teemuatlut : We have printers we are working on which use a belted Z axis with direct (non-geared) drive, so the assumption that if it is a Cartesian it has gearing and/or a lead-screw is soon-to-be incorrect. I may give this option a try and see if it works. My concern isn't with damage, but with false positives due to Z binding. |
|
Just a heads up that due to #10294, the polarity of DIAG1 will change. Not sure whether this necessitate any corrections to this PR, but since it was related, I thought I would mention it. |
68147f7 to
e8e6026
Compare
e0cb8ff to
584735c
Compare
|
@tcm0116 I saw your video. It's nice to use stallguard to get rid of endstops. It's great to make your printer quieter. But using stallguard as a bed probe is like next level. |
|
Hope this feature gets into 1.1.x as well, please, please. |
455f413 to
5e6aef6
Compare
5e6aef6 to
af60249
Compare
9d867f9 to
849dea9
Compare
af60249 to
7aa0ac1
Compare
|
Current configurations claim that StallGuard is only usable with TMC2130 drivers. But this PR claims it can be used also with TMC2208 drivers. Is the current configuration wrong? |
039381b to
731aeb9
Compare
No. I was mistaken. I've updated the configuration files and re-based. |
67590da to
b67ff9d
Compare
|
I've also done a bit of tweaking, rebased, and pushed changes. Did you change anything other than the comments reading …and the sanity checks? |
ec2e302 to
c6f46b0
Compare
|
Ok, should be good to merge once it passes Travis CI. Previously none of the TMC2130 or 2208 tests were being run, so I want to make sure they're all passing now. |
c6f46b0 to
24c3f4f
Compare
The sanity checks were all correct. It was just the comments that were wrong. |
|
This error message is correct? How do we use it with TMC2208? #error "SENSORLESS_PROBING requires TMC2130 or TCM2208 drivers for X, Y, and Z."Also, oops, a little dyslexia fell in with " |
8b55d3d to
ea9d8ae
Compare
|
hello, @tcm0116, can you give a quick explanation on how you wired the pins? |
|
@Palatis - in my setup, I'm using conventional endstops for homing the three towers, which are wired to the X/Y/Z Max inputs on my board. I then have the diag1 output of the TMC2130s wired to the X/Y/Z Min inputs on the board. Marlin is configured with all six of the endstops enabled and |
This PR adds the ability to use the stall guard feature of the TMC2130 to enable using the nozzle as a bed probe. I've tested it on my delta machine, and it seems to work pretty well (as can be seen in https://www.youtube.com/watch?v=xb8dM9duGOs). Mileage will vary with cartesian machines that use lead screws or threaded rods, but I think it's definitely viable on delta machines.
For reference, on my machine, I'm using the traditional max endstops and I have the TMC2130 DIAG1 outputs connected to the min endstops. It should be possible to use both
SENSORLESS_HOMINGandSENSORLESS_PROBINGat the same time, but the DIAG1 outputs of the TMC2130s would need to be connected to both max and min endstops in parallel (or the pins file modified to use the same pins for both).